const container = document.querySelector('.container')
const unsplashURL = 'https://source.unsplash.com/random/'

// 行数
let rows = 5
for (let i = 0; i < rows * 3; i++) {
  let img = document.createElement('img')
  img.src = `${unsplashURL}${getRandomSize()}`
  container.appendChild(img)
}


/**
 * @description: 获取随机大小
 * @return {*}
 */
function getRandomSize(){
  return `${getRandomNum()}x${getRandomNum()}`
}

// 获取随机数
function getRandomNum(){
  return Math.floor(Math.random() * 10) + 300
}
console.log(getRandomSize());
